﻿using System;
using System.Text;
using ProjScan.Tools;
using UnityEditor;
using UnityEngine;

namespace ProjScan.RecordManager.AssetData
{
	// Token: 0x0200029F RID: 671
	internal class MeshRenderingAssetData : ImportAssetData<Mesh, ModelImporter>
	{
		// Token: 0x06001182 RID: 4482 RVA: 0x00052914 File Offset: 0x00050B14
		public MeshRenderingAssetData(int id, string fileName, Mesh mesh, ModelImporter importer) : base(id, fileName, mesh, importer)
		{
			this.uvRange = "NULL";
			this.vertexDensity = "NULL";
			this.invisibleFaces = "NULL";
			this.assetPathIndex = 0;
			bool flag = importer == null;
			if (flag)
			{
				this.noImporter = true;
			}
			else
			{
				this.meshName = ((mesh != null) ? mesh.name : string.Empty);
			}
			this.hardedgeUVSeamConsistencyPicPath = string.Empty;
			this.uvPaddingTooSmallPicPath = string.Empty;
		}

		// Token: 0x06001183 RID: 4483 RVA: 0x000529A4 File Offset: 0x00050BA4
		public MeshRenderingAssetData(int id, string fileName, string fullPath, Mesh mesh, ModelImporter importer) : base(id, fileName, fullPath, mesh, importer)
		{
			this.uvRange = "NULL";
			this.vertexDensity = "NULL";
			this.invisibleFaces = "NULL";
			this.assetPathIndex = 0;
			bool flag = importer == null;
			if (flag)
			{
				this.noImporter = true;
			}
			else
			{
				this.meshName = ((mesh != null) ? mesh.name : string.Empty);
			}
		}

		// Token: 0x06001184 RID: 4484 RVA: 0x00052A20 File Offset: 0x00050C20
		public override string GetCSVHeader()
		{
			return "Name,DirID,UVRange,VertexDensity,InvisibleFaces";
		}

		// Token: 0x06001185 RID: 4485 RVA: 0x00052A38 File Offset: 0x00050C38
		public override string GetInfo()
		{
			StringBuilder stringBuilder = new StringBuilder();
			stringBuilder.Append(ToolsHelper.QuoteString(this.fileName));
			stringBuilder.Append(',');
			stringBuilder.Append(this.assetPathId);
			stringBuilder.Append(',');
			stringBuilder.Append(this.uvRange);
			stringBuilder.Append(',');
			stringBuilder.Append(this.vertexDensity);
			stringBuilder.Append(',');
			stringBuilder.Append(this.invisibleFaces);
			return stringBuilder.ToString();
		}

		// Token: 0x06001186 RID: 4486 RVA: 0x00052AC0 File Offset: 0x00050CC0
		public override string GetAssetPath()
		{
			return string.IsNullOrEmpty(this.meshName) ? base.GetAssetPath() : (this.path + "$" + this.meshName);
		}

		// Token: 0x04000A41 RID: 2625
		public string uvRange;

		// Token: 0x04000A42 RID: 2626
		public string vertexDensity;

		// Token: 0x04000A43 RID: 2627
		public string invisibleFaces;

		// Token: 0x04000A44 RID: 2628
		public int assetPathIndex;

		// Token: 0x04000A45 RID: 2629
		private string meshName;

		// Token: 0x04000A46 RID: 2630
		public string hardedgeUVSeamConsistencyPicPath;

		// Token: 0x04000A47 RID: 2631
		public string uvPaddingTooSmallPicPath;
	}
}
